
global class MyFirstClass Implements Database.Batchable<sObject>{
    global List<contact> start(Database.BatchableContext BC){
        List<contact> lc = new List<contact>();
        for(integer i=0;i<1000;i++){
            contact c = new contact(lastname = 'vikas');
            lc.add(c);
        }
        return lc;
    }
    // amrutha bujjidi
   
    global void execute(Database.BatchableContext BC, List<contact> lc){
        for(contact c: lc){
            insert c;
            system.debug('hiiiiiiiiiiiiiiiiiiiii');
        }
    }
    //gygjghjghj
    // vikas pichodu
    // vikas manchodu kadu
    
    global void finish(Database.BatchableContext BC){
    }
    
}